import React, { Component } from 'react'
import '../../styles/会员购/swiper.scss'
import { Swiper } from 'antd-mobile'

export default class MySwiper extends Component {
    // constructor(props){
    //     super(props)
    // }

    render() {
        return (
            <div className='swiper'>
                <Swiper autoplay loop>
                    {
                        this.props.swiperlist &&
                        this.props.swiperlist.length &&
                        this.props.swiperlist.map((item, index) => {
                            return (
                                <Swiper.Item key={index}>
                                    <img src={item.pic || item} alt="" />
                                </Swiper.Item>
                            )
                        })
                    }
                </Swiper>
            </div>
        )
    }
}
